read index.html via buffer