Javascript Vector for SVG