Some bug-fixes

- Count references
- Provide Node constructor from EventTarget