How to properly add inline js?
Just a suggestion.

As hook_init is only called on non-cached page, and you require this JS to be called on every page; why don't you go ahead and add it to your theme's .info file?

scripts[] = js/stickyMojo.js