modified web.js