Mimic a js dom using jdom.
This is very preliminary. In particular there is no support for namespaces and testing is (so far) minimal.
for examples see https://github.com/stevenbenjamin/nashorn-jdom/blob/master/test/com/flow/js/jdom/JsDocumentTest.java