app.js mv server.js, refoctoring