javascript for instant messages not working on heroku