example for phonegap