test code to try phonegap