node.js: Use stderr rather than stdout for logging

Closes #120
Merge pull request #129 from stephenmathieson/stderr

node.js: Use stderr rather than stdout for logging