Adjusted server.js