init phonegap app