A tree for angularjs