Updated web.js to read index.html file via buffer