JSFiddle - React, Tailwind, and code Playground

HTML

<h1>Searching for <b id="term">Alice</b>, <b id="count">0</b> found.</h1>
<article>
<p>'I&mdash;I'm a little girl,' said Alice, rather doubtfully, as she remembered  the number of changes she had gone through that day.</p>

<p>'A likely story indeed!' said the Pigeon in a tone of the deepest  contempt. 'I've seen a good many little girls in my time, but never ONE  with such a neck as that! No, no! You're a serpent; and there's no use  denying it. I suppose you'll be telling me next that you never tasted an  egg!'</p>

<p>'I HAVE tasted eggs, certainly,' said Alice, who was a very truthful  child; 'but little girls eat eggs quite as much as serpents do, you  know.'</p>

<p>'I don't believe it,' said the Pigeon; 'but if they do, why then they're  a kind of serpent, that's all I can say.'</p>

<p>This was such a new idea to Alice, that she was quite silent for a  minute or two, which gave the Pigeon the opportunity of adding, 'You're  looking for eggs, I know THAT well enough; and what does it matter to me  whether you're a little girl or a serpent?'</p>

<p>'It matters a good deal to ME,' said Alice hastily; 'but I'm not looking  for eggs, as it happens; and if I was, I shouldn't want YOURS: I don't  like them raw.'</p>

<p>'Well, be off, then!' said the Pigeon in a sulky tone, as it settled  down again into its nest. Alice crouched down among the trees as well as  she could, for her neck kept getting entangled among the branches, and  every now and then she had to stop and untwist it. After a while she  remembered that she still held the pieces of mushroom in her hands, and  she set to work very carefully, nibbling first at one and then at the  other, and growing sometimes taller and sometimes shorter, until she had  succeeded in bringing herself down to her usual height.</p>

<p>It was so long since she had been anything near the right size, that it  felt quite strange at first; but she got used to it in a few minutes,  and began talking to herself, as usual....

CSS

article {height: 170px; overflow: scroll;}
h1 {font-size: 130%;}

JavaScript

var string = 'Alice',
    rounds = 0,
    timesFound = 0,
    t;

function pickALetter() {
    if (rounds < 26) {
        var abc = 'abcdefghijklmnopqrstuvwxyz';
        string = abc[parseInt(Math.random() * 26)];
        timesFound = 0;
        $('#term').text(string);
        rounds++;
    } else {
        clearInterval(t);
        $('h1').text('Search Stopped. That was fun.');
    }


}

function searchHere(query) {
    var found = window.find(query);
    if (found) {
        $('#count').text(timesFound++);
    } else {
        pickALetter();
    }
}

window.focus();

function search() {
    searchHere(string);
}
t = setInterval(search, 500);