Manipulating Sets of Elements Using D3.js