phonegap initialization