wip: migrate the canvas implementation from prototypejs to jquery; added canvas and canvas elements, added some useful array functions