Updated web.js
read content from index.html
fixed typo in js
pipe index.html to output