node.js examples fixes
Merge pull request #2686 from sebv/node-example-fixes

Node.js example fixes