Heroku javascript problem