server.js modified