work with phonegap 3.0