Update Node.js

Inverted hasChildNodes() logic to ensure that the existance of a firstChild means there are childNodes