Modifyed Cordova Plugin