Javascript library for turning an element into a canvas for drawing