phonegap integration