Here is a pure JavaScript copy of Google Talk Client from non-Google communities (Sources are available here). It is first implemented in Java language using Eclipse SWT and Smack (A library for Jabber's XMPP). Then the client is converted to JavaScript with servlet supports. And then it's deployed on a Tomcat server.
Coding Library:
Java/JSP Javascript/AJAX
More Google Talk Resources:

