clickHandlerGenerator(isLast))
    }

    function clickHandlerGenerator(isLast = false) {
      return function() {
        const me = this
        setTimeout(function() {
          if (active) {
            active.classList.remove('active')
          }
          me.classList.add('active')

          active = me

          if (isLast) {
            setTimeout(function() {
              active.classList.remove('active')
              active = undefined
              counter = 0
            }, 300)
         