JavaScript coding question - build hierarchy tree

Published --