changed app.js to server.js for server compatibility