adding export as node.js module support