Sample Phonegap code