var Clock = function(minutes) {
  this.minutes = minutes;
  this.seconds = 60;
  this.paused = true;
  this.power = false;

  this.init = function() {
    var currentTime = document.getElementById("currentTime");
    var configureTime = document.getElementById("configureTime");

    currentTime.innerHTML = this.minutes;
    configureTime.innerHTML = this.minutes;
  };
  this.togglePaused = function() {
    this.paused = !this.paused;
  };
  this.displayTime = function(time, element) {
    var element = document.getElementById(element);

    element.innerHTML = time;
  }
  this.addAMinute = function() {
    this.minutes++;

    this.displayTime(this.minutes, "currentTime");
    this.displayTime(this.minutes, "configureTime");
  };
  this.minusAMinute = function() {
    if(this.minutes === 1) {
      return this.minutes;
    }
    this.minutes--;
    
    this.displayTime(this.minutes, "currentTime");
    this.displayTime(this.minutes, "configureTime");
  };
  this.switchConfigure = function(clock) {
    var minus = document.getElementById("minus");
    var plus = document.getElementById("plus");
    var session = document.getElementById("session");
    var breaks = document.getElementById("break");
    var configureTime = document.getElementById("configureTime");

    if(clock == "session") {
      minus.setAttribute("onclick", "session.minusAMinute()");
      plus.setAttribute("onclick", "session.addAMinute()");

      session.setAttribute("style", "background-color: #00cf9e;   color: #f9f9f9;");
      breaks.setAttribute("style", "background-color: #f9f9f9; color: #00cf9e; border: 5px solid #00cf9e;");
      configureTime.innerHTML = this.minutes;
    }
    else if(clock == "breaks"){
      minus.setAttribute("onclick", "breaks.minusAMinute()");
      plus.setAttribute("onclick", "breaks.addAMinute()");

      session.setAttribute("style", "background-color: #f9f9f9; color: #00cf9e; border: 5px solid #00cf9e;");
      breaks.setAttribute("style", "background-color: #00cf9e;   color: #f9f9f9;");
      configureTime.innerHTML = this.minutes;
    }
  }
  this.countdown = function() {
    var clock = this;
    var minutes = clock.minutes - 1;

    if(!clock.paused) {

      var countDown = setInterval(function() {
        if(clock.paused) {
          clearInterval(countDown);
        }
        if(minutes === 0 && clock.seconds <= 1) {
          clock.togglePaused();
          clock.power = false;
          clearInterval(countDown);
        }
        if(minutes <= 1) {
          minutes = 0;
        }
        if(clock.seconds < 1) {
          minutes--;
          clock.seconds = 60;
        }

        clock.seconds--;

        clock.displayTime(minutes, clock.seconds, "currentTime");
      }, 1000);
    }
  };
};

var session = new Clock(25);
var breaks = new Clock(5);
session.power = true;
session.init();

module.exports = Clock;

@@ -152,161 +152,76 @@
     
-var currentTime = document.getElementById(%22currentTime%22);%0A    var configureTime = document.getElementById(%22configureTime%22);%0A%0A    currentTime.innerHTML = 
+this.displayTime(this.minutes, %22currentTime%22);%0A    this.displayTime(
 this
@@ -228,22 +228,19 @@
 .minutes
-;%0A    
+, %22
 configur
@@ -248,33 +248,10 @@
 Time
-.innerHTML = this.minutes
+%22)
 ;%0A  
@@ -424,17 +424,16 @@
 ement);%0A
-%0A
     elem
@@ -742,13 +742,9 @@
 --;%0A
-    
 %0A
+
     
@@ -1097,74 +1097,8 @@
 k%22);
-%0A    var configureTime = document.getElementById(%22configureTime%22);
 %0A%0A  
@@ -1446,52 +1446,62 @@
 %22);%0A
+%0A
       
-configureTime.innerHTML = this.minutes
+this.displayTime(this.minutes, %22configureTime%22)
 ;%0A  
@@ -1862,46 +1862,55 @@
     
-configureTime.innerHTML = this.minutes
+this.displayTime(this.minutes, %22configureTime%22)
 ;%0A  
@@ -2526,17 +2526,24 @@
 (minutes
-,
+ + %22:%22 +
  clock.s

Fix display Time method