Modifief web.js, using buffer to read from index.html file