code: function(callback, delay, repetitions) {
    var x = 0;
    var intervalID = setInterval(function () {
      if (++x === repetitions) {
        clearInterval(intervalID);
        receive_interval_timer = false;
      }
      callback();
    }, delay);
    return intervalID;
  }
docs: Internal helper function for scoped intervals
  @private