trying to fix javascript errors on heroku