Added support for commonJs (npm/browserify)