format index and html files