Re-struct html files