Configured tree.jquery plugin to accept properties:{} config object to configure the name of the 'label' and 'load_on_demand' properties.
So you, can write:
$("#tree").tree({
    properties:{
        label: 'name',
        load_on_demand: 'hasChildren'
    }
});
Added example for using new 'properties' property.
Merge branch 'configurable'