sample for phonegap