updated web.js to read from index.html
updated web.js to read from index.html