DOM support in rhino. eventually, this could be used for unit testing