Only scroll to chat message if at bottom of history (Fixes GH-73)

with this, the latest message is only scrolled into view if you're at the bottom of the chat history. this makes it way easier to read chat history. it has to do the check before the element is appended, since appending the element changes the height, and if done after, it'll never scroll down.