You’re using Jitter properties x & y inside method carrotDraw()'s for loop as if they were its local variables.
That’s why in my modified sketch I’ve declare them as variables inside the loop.
And properties x & y were passed as translate()'s arguments instead.
That is, properties x & y are now the origin coordinates for all the vertices. 