Updated web.js
Switching to read from index.html