AngularJS Tree Directive