Fixed jscript issue when pushing to Heroku