Added sample code for node.js

fix for #45