Added support for CommonJS modules as described in http://dontkry.com/posts/code/browserify-and-the-universal-module-definition.html