Updated web.js to read from index.html
fixed bug in web.js
fixed bug in web.js - wasn't fixed before
fixed typo in web.js