removes cordova ref