script phonegap