Fixed #689

removeClass() won't work so used removeAttr('class') instead