tree renderer using angularjs