modify web.js to work with socket.io on heroku