apply format to index.html