adding javascript into and expression

Hi Everyone 

I have this javascript code which is a simple stop watch  I wish to make a expression to run  timer for me where I could start the time then stop it convert everything into hours then save into a database, 

I tried following an example from the oustystems web to add the script , it does go through but my time expression doesn't count I wish to know if there is something am doing wrong , if any where can i fix this.

let seconds = 0;

let minutes = 0;

let hours = 0;

function stopWatch(){

    seconds++;

    if(seconds / 60===1)  {

        seconds = 0;

        minutes++;

        if(minutes / 60===1)  {

        minutes = 0;

        hours++;

}

}

document.getElementById('"+time.Id+"').innerHTML = hours +":"+minutes+":"+seconds);


}


window.setInterval(stopWatch,1000);

Hi,

Change the below line

from:

document.getElementById('"+time.Id+"').innerHTML = hours +":"+minutes+":"+seconds); 

to

document.getElementById('"+time.Id+"').innerHTML = hours +':'+minutes+':'+seconds; 

Regards.