solving the error with web.js file