Fixed PhoneGap API and fixed PhoneGap Plugin to Cordova Plugin