modified js for heroku