Contains code to create TreeView using angularjs