HTML5 Canvas bezierCurveTo generator