Cordova API changes broke the wrapper. Fixed it

![](http://media.giphy.com/media/DLxaEcISD5TaM/giphy.gif)