jQuery.fn.liveUpdate = function(list){
  list = jQuery(list);

  if ( list.length ) {
    var cache = list.map(function(){
        return $(this).text().toLowerCase();
      });
     
    this
      .keyup(filter).keyup()
      .parents('form').submit(function(){
        return false;
      });
  }
   
  return this;
   
  function filter(){
    var term = jQuery.trim( jQuery(this).val().toLowerCase() ), scores = [];
   
    if ( !term ) {
      list.show();
    } else {
      list.hide();

      cache.each(function(i){
        var score = this.score(term);
        if (score > 0) { scores.push([score, i]); }
      });

      jQuery.each(scores.sort(function(a, b){return b[0] - a[0];}), function(){
        jQuery(list[ this[1] ]).show();
      });
    }
  }
};

