Add module.exports for stuff like browserify.

Just added an extra check for module.exports because I need it for a project I'm working on. :)