Call session.js and password-check.js from the application.js file instead of directly from the views, necessary for Heroku deploy.