Light update to getNodeType()

Removing use of Underscore library