use

var newNode = new Ext.tree.TreeNode({
id: nodeData.id,
text: nodeData.text,
expanded: true,
leaf : false
});
...