add CommonJS export and package.json for npm/Browserify