Attempt to make javascript work on heroku