working with phonegap