Updated web.js
read index from disk