check for phonegap