Like many front end developers I've come to Javascript late. Of course I could go and grab one of the many Javascript libraries out there. But I'm making an effort to learn Javascript. Thankfully it isn't as hard as you might think.
This example shows how to use AJAX to implement a basic chat system on a website. It refreshes the chat transcript using AJAX to maintain a constantly updated view of the chat session.