debugged web.js