Corrected bug in web.js