JSFiddle - React, Tailwind, and code Playground

HTML

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
 
<script type="text/javascript" src="http://keith-wood.name/js/jquery.countdown.js"></script>


<p>
            <span id="highlightCountdown" class="countdown"></span>&nbsp;
            <button id="highlightButton">Restart</button></p>
        <div style="clear: both;"></div>
        

    <div id="wild" class="feature">

JavaScript

$('#highlightCountdown').countdown({until: 0, format: 'hmS',onTick: highlightLast5});
    
function highlightLast5(periods) {
    if ($.countdown.periodsToSeconds(periods) == 5) {
        $(this).addClass('highlight');
    }
}

$('#highlightButton').click(function() {
    $('#highlightCountdown').text('DONE!!').
        countdown('change', {until: +10});
});
alert('p');