cleaned server.js