How can I break, stop, each loop when return false is not working?

How can I break, stop, each loop when return false is not working?

My code is supposed to place a banner between a content, but it is looping the banner. I need it to display a single banner only. I have tried using `return false;`, like the example fiddle, but it didn't work:

JS FIDDLE:  https://jsfiddle.net/714Lmgfu/3/

The fiddle is an example. This code is running on a web page where the html is generated dynamically, so I need the   .contents() part, can't remove it.

  1. $(".newsitem_text").contents().each(function () {

  2.         if (this.nodeType != 3) {
  3.             newHtml += this.outerHTML;
  4.             count += $(this).text().trim().split(/\s+/).length;
  5.         } else {
  6.             var wordList = $(this).text().trim().split(/\s+/);

  7.             $.each(wordList, function (index, word) {
  8.                 count++;
  9.                 check();
  10.                 newHtml += ' ' + word;
  11.             })
  12.         }

  13.         return false;
  14.     });