check for phonegap 3