A small set of abstraction classes for d3.js