web.js now takes data from index.html (updated web.js)