Workaround for $().removeClass() not working - replace with
$().removeAttr('class')