check for phonegap 2