There are a lot of useful utilities and functions we have in HTML5 DOM and Canvas, and things like event emiitter. Collect these into one example, and some clean sample code with clear licenses .