What is a "Shape"?
You typically save your shapes by creating a JavaScript "shape" object representing each shape.
var myCircle = { x:30, y:20, radius:15 };
Of course, you're not really saving shapes. Instead, you're saving the definition of how to draw the shapes.
Then put...