Update AnimatedMarker.js

fix for: "the last point never added to chunked path"