added node.js examples and updated docs