added a module.exports for browserify or node.js