https://kasumiblog.org/javascript-insertbefore-error/
Failed to execute 'insertBefore' on 'Node' The node before which the new node is to be inserted is not a child of this node.の原因・対処方法