Save the order of points

Save the order of points. Especially important for animation.
Example:

draw.polyline([[0,0],[10,0],[20,0],[30,0],[40,0]]).fill('none').stroke({
 color: '#222', width: 1 })
	.animate(200)
	.plot([[5,0],[10,0],[20,10],[30,0],[35,0]]);