added minified version for browser use