Implement SVG SMIL animations using JavaScript