I'm afraid it's not possible to use `notify` as you're suggesting. Look at:
https://github.com/theforeman/foreman/blob/develop/app/assets/javascripts/application.js#L339
It expects html element as first argument. That's why I used `$.jnotify` directly. I can update `notify` function if we agree it is preferred way of using it.