server.js cleaned