CommonJS support

CommonJS support for npm & browserify.