trying to make js work on heroku