Modified web.js to fix error