javascript errors on heroku