add module.exports for basic node.js compatibility