anchor.diff:    // When the dialog is hidden, unhook the keydown event handler.
     // If onHidden option is passed in, call that as well.
     // If redirect option is passed in, redirect the page.
  +  // After that, close the dialog.
     $(this.div).on(
         'hidden.bs.modal',
         function() {
  
positive.code:   body.append(notesDiv);
    getShowNotes(options.key, notesDiv);
  
    var dialog = new Dialog({
      body: body,
      redirect : options.redirect,
      onHidden : function(e) {
         $(dialog.div).remove();
      }
    });
    $div = $(dialog.div);
    $div.addClass('video-modal');
  
  
negative.code:         if (options.redirect) {
            window.location.href = options.redirect;
          }
          $(this.div).remove();
    });
  
    if (options.onKeydown) {
  