updated web.js
Added index.html
read from index.html
fix closure syntax