Render arrows in SVG with javscript