updated web.js, working