Fixing the terrible job of htlatex