function ms2seconds(milliseconds) {
    "use strict";
    return Math.round(milliseconds / 1000 * 1000) / 1000;
}
Converts milliseconds to seconds and rounds the results to 3 digits accuracy.

@param  Number  milliseconds
@return Number  seconds