SVG arcs in javascript