Modified web.js to try and read from index.html