Moving the javascript into the application.js file rather than having it in the HTML file... this will need to be included on many application pages if we're to have the sign-in-when-you-like idea