updated phonegap script