<
$('.IsBestAnswer').addClass('bestanswer').removeClass('IsBestAnswer');
Case in method names is important, so no addclass.
addclass
jQuery addClass() jQuery removeClass()