updated web.js file