add node.js example to call legacy