You can manage to do this without any external JS library with the help of JS Date method like following:
var date = new Date(0);date.setSeconds(45); // specify value for SECONDS herevar timeString = date.toISOString().substring(11, 19);console.log(timeString)