code: function insertTo(root, node, before) {
    if (!root) return
    root.insertBefore(before, node)
    root.removeChild(node)
  }
docs: Insert a DOM node replacing another one (used by if- attribute)
  @param   { Object } root - parent node
  @param   { Object } node - node replaced
  @param   { Object } before - node added