change phonegap initialization