Updated web.js
web.js now takes data from index.html