Code for creating a dendrogram on the web