Fixed issue with auth.js if jquery is in bottom of the page