Minor: code style
Node changed to inherit from EventTarget
Minor: changed leaking name function declaration