Cleanup of the layout's HTML