Pierre draws curves in JS