phonegap post revised