JS fix for specificity of remote tabs