Update pathAnimation.js