Changed web.js to handle index.html through buffer