updated web.js
updated index.html with template