debugging javascript issues with heroku