revised web.js file