Do the tree client side in jscript...