Updated web.js with index read