milliseconds to time in javascript
<p>I have this function which formats seconds to time </p>

<pre><code> function secondsToTime(secs){
    var hours = Math.floor(secs / (60 * 60));
    var divisor_for_minutes = secs % (60 * 60);
    var minutes = Math.floor(divisor_for_minutes / 60);
    var divisor_for_seconds = divisor_for_minutes % 60;
    var seconds = Math.ceil(divisor_for_seconds);
    return minutes + ":" + seconds; 
}
</code></pre>

<p>it works great but i need a function to turn milliseconds to time and I cant seem to understand what i need to do to this function to return time in this format</p>

<pre><code>mm:ss.mill
01:28:5568
</code></pre>
