Modified web.js to remove error