basic implementation of jQuery based tree for 1.4 (still to be improved
to make it nicer)