update module.exports for browserify compatability
Merge pull request #675 from triggity/master

update module.exports for browserify compatability