updated server.js for heroku