Tab selection via JS RegEx