JavaScript: JQuery Accordion: retrieve active tab / open dynamically