amended web.js file