Draw hierarchical tree in html using organizational chart control

Few years back, I created multilevel marketing web application and one of the obvious requirements was to display customer network that included its sponsor as well as the customers who were sponsored by that customer. In other words, this was nothing but to display hierarchical data in a tree format on a web page.