check if module.exports exists first to fix issue with Browserify and requirejs
Merge pull request #11 from gotbadger/master

check if module.exports exists first