fixes js spec
Allows a callback for advanced filtering on the tree picker, also ensures that the "search..." nodes are never filtered since these are functional nodes and not selectable by default.