Debug responsive checking function in team overlay JS