Adding basic shapes in svg and drawing svg using d3.js