code: function toImg (fn) {
      return function (opts) {
        var img = h('img')
        fn(opts, function (url) { img.src = url })
        return img
      }
    }
docs: var int = setInterval(function () { var a = document.querySelectorAll('.timestamp') for(var i = 0; i < a.length; i++) { var _ago = ago(Date.now(), +a[i].dataset.timestamp) if(a[i].textContent != _ago) a[i].textContent = _ago } }, 10000)  if(int.unref) int.unref()