mScript v.1.2.2
mScript v.1.2.2

Added $().canvas(): quick way to see if canvas is supported and execute function if  it is(n't).
$(canvasElement).canvas(<your context: ["2d"/"3d"]>,[function if supported],[function if not supported; optional]);

You can still use canvas.getContext() in the supported function if you need to get another context.

In supported function, argument 1 is the canvas element and 2 the context.
In no support function, argument 1 is the canvas element.

Errors are thrown if context is invalid (not "2d" or "3d") and if no supported function is provided.
MateyY/mScript