Replacing add/removeClass class with switchClass