 
 
 	jQuery(document).ready(function() {
-		doATree();
+		doATree('');
 
 		$( "#srchTerm" ).click(function() {
 	console.log('clicky');

<script src="//cdnjs.cloudflare.com/ajax/libs/jstree/3.3.3/jstree.min.js"></script>

<script>
function doATree(t)
{

	console.log('dt; t=' + t);
		  $('#container').jstree({
		    'core' : {
		      'data' : {
		        "url" : "/ajax/ttree.cfm?test=" + t,
		        "dataType" : "json",
		        "data" : function (node) {
		          return {

	//	$('#container').jstree(true).settings.core.data = newData;
   // $('#container').jstree(true).refresh();
   $('#container').jstree(true).destroy();
   doATree($("#term").val());
  // $('#container').jstree(true).refresh();

/*
