update web.js for heroku