updated server.js file.