Simple HTML and JavaScript tree renderer