diff --git a/_includes/player.html b/_includes/player.html
index 707478c..78c113d 100644
--- a/_includes/player.html
+++ b/_includes/player.html
@@ -1,24 +1,18 @@
-
-
- {{ include.user }} |
-
-
-
-
-
+
+
+
+
+
+
+
-
+
-
-
-
\ No newline at end of file
+
+ document.querySelector('.chat-input-form').addEventListener('submit', sendMessage);
+ document.querySelector('#username-input').addEventListener('change', setCustomUsername);
+
diff --git a/php/chat/relay.php b/php/chat/relay.php
new file mode 100644
index 0000000..1613733
--- /dev/null
+++ b/php/chat/relay.php
@@ -0,0 +1,35 @@
+ $last_modif) {
+ $last_modif = $current_modif;
+ $data = file_get_contents($tmp_file);
+ echo "data: " . trim($data) . "\n\n";
+ ob_flush();
+ flush();
+ }
+
+ sleep(1);
+}
+?>
+
diff --git a/php/chat/send.php b/php/chat/send.php
new file mode 100644
index 0000000..7dda579
--- /dev/null
+++ b/php/chat/send.php
@@ -0,0 +1,11 @@
+