Read index.html from buffer