Parse SVG coordinates in JavaScript.