technical spike: draw & edit rectangles on a html5 canvas