Fixed web.js bug.
Fixed more bugs in web.js