Restructures HTML DOM according to a very simple sequence outline