[{
                text: 'new item1'
            }, {
                text: 'new item2'
            }]
        });
    }

    function removeit() {
        var node = $('#tt').tree('getSelected');
        $('#tt').tree('remove', node.target);
    }

    function collapse() {
        var node = $('#tt').tree('getSelected');
        $('#tt').tree('collapse', node.target);
    }

    function expand() {
        var node = $('#tt').tree('getSelected');
        $('#tt').tree('expand', node.target);
    }
</scrip