updated web.js in hopes it works for heroku