Fix error where chat entries window did not scroll
- Everytime a message is appended to the chatEntries div, the script will also scroll down to the bottom of the div showing the latest message
Refactor script
- Make more DRY by making scrollDown its own function which scrolls to the bottom of an element
- Use it to scroll down to the bottom of chat window everytime a new message is appended so the user will see the latest message
Merge pull request #15 from alexanderdavidpan/Fix_Chat_Window_Scrolling

Fix chat window scrolling