When I try to execute this in jQuery I get $ctx.getContext is not a function in firebug.
$ctx.getContext is not a function
var $ctx = $( \'\', {width:\'100\', hei
$ctx is a jQuery object. use $ctx[0].getContext('2d') to get the context
$ctx
$ctx[0].getContext('2d')