if you're using socket.io and your chat window is growing (but the html isn't actually updating with content), then the following method should force the 'growing'
to automatically scroll down after every emit/broadcast event that you choose (i.e., scroll down after chat window updates with a new post). enjoy!
Auto scroll to the bottom of the chat window when there are new messages.