Consider moving reused selectors like ``'.dismiss-ok'`` up to the top of ``init`` and caching their results.

```javascript
var $dismisOk = $(options.panel).find('.dismiss-ok')
...
.onError(function() {
    $dismissOk.show();