updated web.js to read index
updated