Corrected some errors in web.js