Revised web.js