Corrections in removeClass and hasClass