Proper scrolling behavior in main.html chat. If at bottom of chat when new msg arrives, we stay following chat.