Refactored debug toolbar to use plain javascript #7400

You're right!