modified new web.js