MOCTX.js is a monad wrapper around the CanvasRenderingContext2D Object built on top of Douglas Crockford's awesome Monad library.