Updated web.js
reading from index
fs fixed
index added