updated server.js file