Modified web.js to read inex.html