пример http://htmlpreview.github.io/?https://github.com/daredevel/jquery-tree/blob/master/index.html

исходники https://github.com/daredevel/jquery-tree