Current logic -> Use setInterval to call UpdateClocks function where all the clocks are updated Instead a better approach can be to have separate functions attached to separate clock object