Amended web.js