corrected phone-gap version