Cordova API changes broke the wrapper. Fixed it