Code for displaying trees in HTML