Converting structure to jQueryUI's accordion