Extremely basic Bezier curve editor using HTML5 canvas