Support CommonJS module loaders, e.g. Browserify and Webpack

partially addresses #21