working phonegap