fixed web.js to read index now