diff --git a/js/references-dialog.js b/js/references-dialog.js
index 0c23b31..3034b7b 100644
--- a/js/references-dialog.js
+++ b/js/references-dialog.js
@@ -44,6 +44,27 @@
             return false;
           });
         });
+
+        // Provide a 'remove' button on entityreference fields.
+        $('.references-dialog-links').each(function (i) {
+          if (($('li.first a.edit-dialog', this).length >= 0) && ($('li a.remove-dialog', this).length <= 0)) {
+            $('li.last', this).removeClass('last').parent().append('<li><a href="#" class="remove-dialog">' + Drupal.t('Remove') + '</a></li>');
+
+            var index = ($('li', this).length - 1).toString();
+            $('li', this).last().addClass(index).addClass('last');
+
+            $('a.remove-dialog', this).click(function () {
+              // Hide this row entirely.
+              $(this).parents('li').hide();
+
+              var currentID = $(this).parents().find('input.form-autocomplete').attr('id');
+              var emptyInput = $('#' + currentID);
+              $(emptyInput).val('').change().blur();
+
+              return false;
+            });
+          }
+        });
       }
     }
   };
