drawing SVG with JavaScript