diff --git a/files/assets/js/chat.js b/files/assets/js/chat.js
new file mode 100644
index 000000000..1df4fbedf
--- /dev/null
+++ b/files/assets/js/chat.js
@@ -0,0 +1 @@
+window.global = window
diff --git a/files/assets/js/chat_done.js b/files/assets/js/chat_done.js
index 7ed3a4f9e..d04eebcfc 100644
--- a/files/assets/js/chat_done.js
+++ b/files/assets/js/chat_done.js
@@ -1,5 +1,3 @@
-window.global = window
-
(() => {
var __create = Object.create;
var __defProp = Object.defineProperty;
diff --git a/files/templates/chat.html b/files/templates/chat.html
index 868c1e830..7f52583c2 100644
--- a/files/templates/chat.html
+++ b/files/templates/chat.html
@@ -16,6 +16,7 @@
data-namecolor="{{v.namecolor}}"
data-hat="{{v.hat_active(v)[0]}}">
+