client: de-jQueryify generic tree UI

Part of an effort to remove dependency on jQuery.

$ instances left: 128