Use XMLSerializer and DOMParser instead of jquery.

This supersedes #136. It simply rebases the same changes onto the new master branch into which bookish-include was now merged.