Phonegap example 1