Updated application.js for heroku