Work done with animate path js for animation according to a bezier curve