First shot for a JavaScript client using notifications.

Also, the notorious chat demo has been included.