updated web.js
added index.html
read output from index.html
fixed error