I don't understand J.Query
Is there a certain part you don't understand? Could you give some more details so we can help you?
Its the adding and removing classes
Can you show us your code then we can explain the part which is incorrect
It might seem hard at first, but I bet one of us could help you. Do you think you could show us your code so we know exactly what you're confused about?