web.js takes data from index.html