Add class to change font-family

Add class to change font-family

I'm trying to update the font-family assigned to some classes.  Unfortunately, the class doesn't seem to be applying and I don't know what I could be doing wrong.
My script:

  1. $('div[class^="ls-wrapper"]').promise().done(function() {
  2.   $('div[class^="lslide_wrap"]').each(function() {
  3.     var clcheck = $(this).attr('class').substr($(this).attr('class').indexOf("in_") + 3);
  4.     var acheck = $(this).children('a').attr('class').substr($(this).children('a').attr('class').lastIndexOf("in_") + 3);
  5.     if (clcheck != acheck) {
  6.       $(this).find('a span span').each(function(c) {
  7.         var charclassinit = $(this).attr('class');
  8.         var charclend = $(this).attr('class').substr($(this).attr('class').indexOf("ls-") +0);
  9.         var charnum = $(this).attr('class').substr($(this).attr('class').indexOf("ls-w") + 4).substring(0,1);
  10.         var charclbeg = charclassinit.replace(charclend, '');
  11.         var wrapclass = $(this).closest('[class^="lslide_wrap"]').attr('class');
  12.         var wrapnum = $(this).closest('[class^="lslide_wrap"]').attr('class').substr($(this).closest('[class^="lslide_wrap"]').attr('class').indexOf("ap_") + 3).substring(0,1);
  13.         var cltar = '.' + wrapclass + ' .'+charclend;
  14.         charsel = wrapnum + 'ls-w' + charnum;
  15.         $(cltar).addClass(charsel);
  16.       });
  17.     }
  18.   });
  19.   });

Sample html:

  1. <div class="lside_wrap_1_stacks_in_259_page4">
  2.   < a href=... class="lslide_stacks_in_259_page4">
  3.     <span class="ls-wrapper_stacks_in_260_page4" ...>
  4.       <span class="char1 ls-w2_stacks_in_260_page4"...></span>
  5.       <span class="char1 ls-w1_stacks_in_260_page4"...></span>
  6.     </span>
  7.     ... more similar spans
  8.   </a>
  9. </div>

The classes assigned to the example:
.1ls-w1 {
    font-family: Courgette !important;
    }
.1ls-w2 {
    font-family: Allura !important;
    }

The classes are being added, but I don't see the font-family being applied, the default theme font (LiberationSerifRegular) is showing up.

The word Courgette should show a script type of font.
I'd appreciate the help in figuring this out.

Thanks