Fixed bug in web.js