fix example on using as a node.js module