code: public static void insertAfter(Element newElement, Element after) {
          after.parentNode.insertBefore(newElement, after.nextSibling);
      }
docs: Inserts the specified element into the parent of the after element.