fix for cordova.require