Pablo is a lightweight, expressive JavaScript SVG library. Pablo creates interactive drawings with SVG (Scalable Vector Graphics), giving access to all of SVG's granularity and power.
var body = Pablo('body').empty();
var svg = Pablo.svg({width: 500, height:500})
.css({border:'1px solid green'});
svg.circle({cx:100, cy:100, r:10});
svg.rect({x:200, y:100, width:50, height:90});
// swap the order of the following two lines; they
// produce different results
svg.crop();
body.append(svg);
(Safari 6.0.5 on Mountain Lion)