fixing heroku js issues