updated to phonegap 3.1