Moving app.js to server.js