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