Updated web.js to debug