change to phonegap 3.0 lib