add custom callback
add isExpanded method to treeBrowser's scope, enabling custom defined isExpanded method from user
switch to using isExpanded method
switch to using isExpanded method