modified web.js to load data from index.html