Check out the live HTML5 mobile chat demo here:
HTML5 Mobile Chat + jQuery
Only the basic jQuery functions were used to get this app into action such as
scrollTop(). Then we used the PubNub
subscribe() functions to allow cross-phone communication. The rest was simple because PubNub provides a reliable mobile connection between iPhones/Android devices and jQuery take care of the UI joy.