Language: JavaScript
Label: safe
CWE: CWE-829 \u2014 Inclusion of Functionality from Untrusted Control Sphere
The product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere.

Code:
        return setInterval(function() {

            var distance = new Date().getTime() - startTime;

            var totalSeconds = distance / 1000;

            var seconds = Math.floor( totalSeconds % 60 ).toString().padStart(2,0);

            var minutes = Math.floor( ( totalSeconds % 3600 ) / 60 ).toString().padStart(2,0);

            var hours = Math.floor( totalSeconds / 3600 ).toString().padStart(2,0);
            
            $(container).html(`${hours}:${minutes}:${seconds}`);

        }, 1000);