Javascript catchup undefined
<p>I have build an array loader with javascript. </p>

<p><a href="http://jsfiddle.net/ayQH2/" rel="nofollow">Here the jsfiddle</a></p>

<p>When I directly click last, I get undefined. I tryed to catch it up with something like this</p>

<pre><code>var lastWord = (function() {

            return function() {
            var resultWord = wordArray[--count % wordArray.length];
                if (typeof resultWord == "undefined")
                { 
                return false;
                }
                else 
                {
                return wordArray[--count % wordArray.length];
                }
            }
        }

}());
</code></pre>

<p>But didn't worked, any suggestions?</p>
