Added the code to web.js