index.js
function detach(el) {
  var parent = el.parentNode
  var next = el.nextSibling
  parent.removeChild(el)
  return function() {
    if (next) parent.insertBefore(el, next)
    else parent.appendChild(el)
  }
}
function detach(el) {
  var parent = el.parentNode
  var next = el.nextSibling
  parent.removeChild(el)
  return function() {
    if (next) parent.insertBefore(el, next)
    else parent.appendChild(el)
  }
}
function detach ( el ) { var parent = el . parentNode var next = el . nextSibling parent . removeChild ( el ) return function ( ) { if ( next ) parent . insertBefore ( el , next ) else parent . appendChild ( el ) } }
for faster DOM manipulation - not faster in this case
for faster DOM manipulation - not faster in this case