update tab selection logic to work with both new (1.9+) and old jQueryUI tab widget APIs