Update web.js and index.html with code