Replace deprecated Cordova methods

Replace the methods that are deprecated in Cordova >= 3.6.3, as these will be fully removed in Cordova 4 and currently show warnings.