a sample of a bezier curve hittest on html5 canvas