added phonegap.js for using phonegap and cordova api