Treeview implementation in AngularJS