Modify web.js to correctly read from index.html