Add Grunt support. Minify JS with UglifyJS. Fix bug in example code