Determined a bug in d3js text updating. TODO.