Refactored debug toolbar to use plain javascript #7400

You should use [`panel.children`](https://developer.mozilla.org/en-US/docs/Web/API/ParentNode.children) because [`.childNodes`](https://developer.mozilla.org/de/docs/DOM/Node.childNodes) also includes text nodes.