change js file to work with heroku