Updated web.js to be a server