SVG rendering using JavaScript (work in progress).