diff --git a/files/templates/chat.html b/files/templates/chat.html
index 4516835aad..2f835e7b0f 100644
--- a/files/templates/chat.html
+++ b/files/templates/chat.html
@@ -138,7 +138,7 @@
document.getElementsByClassName('userlink')[0].style.color = '#' + json['namecolor']
document.getElementsByClassName('chat-message')[0].innerHTML = text
document.getElementById('chat-text').append(document.getElementsByClassName('chat-line')[0].cloneNode(true))
- if (scrolled_down) box.scrollTo(0,box.scrollHeight)
+ if (scrolled_down) box.scrollTo(0, box.scrollHeight)
})