moved server.js to web.js for compatibility with heroku