extend phonegap/cordova