Use the clearInterval() method to the clear the repeating command with the timeID variable clockID. code example
Example: Javascript stop setInterval
var myInterval = setInterval(function(){console.log("mmk")}, 2000);
clearInterval(myInterval); //stop that interval