added a minified version and updated the example