fixing exporting for Node.js #8