how to add an element in javascript at certain index of childnods code example
Example: javascript appendchild at index
parentElement.insertBefore(newElement, parentElement.children[2]);
parentElement.insertBefore(newElement, parentElement.children[2]);