Example from PhoneGap Essentials Book