update module.exports for browserify compatability