Updating the millisecond parameter of setInterval function in Javascript
<p>I have a slider that is displaying quotes. Some quotes are longer than others and I'd like to provide the user adequate time to read them. The timer variable is getting updated in the changeQuote function, but its not updating the paramater of the setInterval function. How can I update the milliseconds parameter of the setInterval? Thanks</p>

<pre><code>var quotes=[{quote:'lorem ipsum', name:'test'},{quote:'lorem ipsum ipsum 2', name:'test2'}];

var x=0;
var l = quotes.length;
var ql=0;
var timer=0;

function quoteInit(){
    if(x==l) x=0;
    ql = quotes[x]['quote'].length;
    $('.quote').find('h4').html(quotes[x]['quote']);
    $('.quote').find('p').html(quotes[x]['name']);
    timer=(ql*110);
    x++;
    changeQuote(timer); 
}

function changeQuote(timer){
    console.log(timer);
    setInterval(quoteInit,timer);
}

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