code: function debounce(fn, delay) {
    var t
    return function () {
      clearTimeout(t)
      t = setTimeout(fn, delay)
    }
  }
docs: Simple/cheap debounce implementation
  @param   {function} fn - callback
  @param   {number} delay - delay in seconds
  @returns {function} debounced function