Sorting out the html files