Another tree component, implemented with JQuery iteratively (as opposed to recursive)