code for server.js