add script check phonegap