Refactored debug toolbar to use plain javascript #7400

Fixed. But also IE9+.