Dealing with raw svg in JavaScript

I recently needed to create some simple svg drawings using JavaScript. I did not want to use a big, fancy library like d3.js or raphael for this, I just wanted to draw a couple of rectangles and add a few tspans to them. I started looking for simple, lightweight tools that could get the job done quickly. I have found 2 svg libraries - snap.svg and svg.js and both turned out to be outstanding.