Chaining addClass/removeClass is not the correct syntax