Changing a Typewriter jQuery Effect from letter by letter to word by word
<p>This jQuery function works great letter by letter, but I cannot seem to get it to go word by word.</p>

<p>Any ideas, here is the function:</p>

<pre><code>//Typewriter Effect
$.fn.Typewriter = function(opts){
    var $this = this,
        defaults = { animDelay: 50 },
        settings = $.extend(defaults, opts);
    $.each(settings.text, function(i, letter){
        setTimeout(function(){
            $this.html($this.html() + (letter!='\n'?letter:'&lt;br /&gt;'));
        }, settings.animDelay * i);
    });
}
</code></pre>

<p>Thanks!</p>
