fixing exporting for Node.js