Added support for CommonJS modules

Added support for CommonJS modules as described in http://dontkry.com/posts/code/browserify-and-the-universal-module-definition.html

I haven't regenerated the monified version, as I'm not sure what tool you are using for that.

Thanks!