Fixed minor bug on web.js