Updated web.js changed code