 
 Handlebars.registerHelper('colorize', -> colorHandle(this["userName"]))
 
-scrollToBottom =  ->
-    $('html, body').animate({ scrollTop: 99999999 }, "slow")
+scrollToBottom = _.debounce(
+    ->
+        console.log('Debouncing')
+        $('html, body').animate({ scrollTop: 99999 }, "slow")
+    ,
+    100
+)
+
 
 # Template helpers
 Template.showMessages.helpers({


            textBox.value = ''
            textBox.focus()
            autoScroll = true

    'keyup input[name="dst"]': (ev, template) ->
        if ev.which == 13


            textBox.value = ''
            textBox.focus()
)
