Correct the structure of document for prettier HTML.