making phonegap work