A simple chat room demo for a PhoneGap tutorial