Make dendrogram compatible with older version of d3.