Fixed error in web.js