Use buffer for index.html