The JavaScript code is embedded directly into the SVG file using CDATA delimiters to suppress warning messages. Each of the three paths is on its own timer.