Updated web.js
web.js now reads from index.html file
reading from buf variable
fixed wrong variable name