node.js: Use stderr rather than stdout for logging

Closes #120