I just discovered in jQuery's documentation that you can do:

```js
var settings = $.extend({}, $.confirm.options, ...
```

That will leave `$.confirm.options` unmodified, so no need to have `$.confirm.options.defaults` in the end.