improved Mojo::DOM::HTML to generate better HTML