Use removeAttr('class') instead of removeClass()