Updated web.js
Changes made
Read from index