Modified web.js to fix an error