An angularjs dynamic tree