I've created a tampermonkey script that generates certain elements and adds them to the page.
The first element, named ControllerBG, is appended to an element with the id "motd".
However, when I try to append a second element, nothing appears on the page and no errors are shown in the console.
For example:
ControllerBG.appendChild(TopContainer);
Only the first variable/element gets appended, resulting in something like this:
<div class="ControllerBG" item-controlv1=""></div>
Why aren't the other elements being added to the variable "TopContainer"?
You can view the JavaScript code in my JSFIDDLE link here:
https://jsfiddle.net/60nzjxf3/
I even attempted to use:
ControllerBG.innerHTML = TopContainer