modified web.js to pull from index.html