updated web-server.js file