this is a sample for phonegap