.match statement

.match statement

I'm try to add something to the standard Google calendar script:

This is my variable:
  1. var full = !! entry.content.$t.match(/full/i);

And this is the "console.log"
  1. console.log(booked)
    console.log(i)

And this is the anwer in my console:
This is a part of the Google calendar api json script:
  1.   // loop through each event in the feed
  2.   for (var i = 0; i < feed.entry.length; i++) {
  3.     var entry = feed.entry[i];
  4.     var title = entry.title.$t;
  5.     var start = entry['gd$when'][0].startTime;
  6.     var full = !! entry.content.$t.match(/full/i);

  7. console.log(booked)
  8. console.log(i)

  9.     var dateString = formatGCalTime(start);
  10.     var li = document.createElement('li');

  11.       span = document.createElement('span');
  12.       span.appendChild(document.createTextNode(dateString));
  13.       li.appendChild(span).addClass('timeDate');

  14.       li.appendChild(document.createTextNode(' ' + title));
  15.     
  16.     ul.appendChild(li);
  17.   }
  18.   events.appendChild(ul);
  19. }
  20.  

My question is:
How do I add the text (...sorry we're booked) after a "date li" or change the color of that "date li" when it is "true"