global replace .attr("class") with .addClass to preserve preexisting classes
Merge pull request #3 from karger/2013-03-16_addClass

glob replace .attr("class") with .addClass to preserve preexisting classes