function insertAfter(newElement, targetElement) {
    targetElement.parentNode
        .insertBefore(newElement, targetElement.nextSibling);
    return newElement;
}
Inserts newElement after targetElement
@param {HTMLElement} newElement - element to be inserted
@param {HTMLElement} targetElement - after which must be inserted
@return {HTMLElement} newElement