Making html well formed