Issue #39 - use module exports for Node.js