Fix deprecation warning regarding Cordova 4.0

Fixes #18