modified applicationjs for heroku