move app.js to server.js