Modified js for heroku