added some changes to web.js