edited the javascript file to fix a problem with heroku deployment