Modifed web.js to read index.html