Simple SVG drawing script using D3js