Fixes #29 - conditionally assign the NODE_TYPE constant

Fixes #29 by conditionally defining NODE_TYPE