Created second example, showing how to customize plugin by supplying options.
Changed setInterval to setTimeout, fixed bug with onClick handler.