Adding tab selection via js