check for module.exports for nodejs environent.
typo
Merge pull request #441 from dweave/master

check for module.exports for nodejs environent.