Bugfix in Node.js

Wrong function call:  type.getChildren[i]
Added () to getChildren