phonegap 3.0 fixes