simple example for phonegap