Fix #46 - Use handle.nodeName instead of handle.name for the doctype node name

Contains an unrelated change to make console logging a bit clearer.
The actual fix was just changing `this.handle.name` to `this.handle.nodeName`.