Update to phonegap 3.1