function insertBefore(newNode, existingNode) { existingNode.parentNode.insertBefore(newNode, existingNode); }