Implement SVG animation in JavaScript using Web Animations