Use XMLSerializer and DOMParser instead of jquery.

Jquery often changes a file into an html file instead. EPUB wants xhtml.