corrected phonegap library