begin phonegap