reading from index.html
uapdate using buffer