Added the client side chat JavaScript.