https://tutorial.eyehunts.com/js/javascript-adds-element-after-another-example-code/
JavaScript adds element after another | Example code