unique variables

unique variables

I create a simple plugins and bind it to two div in my pages.

.............

jQuery.jUpload = function()
{
   var test;
      
   return {
      startUpload: function()
      {
         alert(test);
      },
      
      setVars: function(_test)
      {
         test = _test;
      }
      };
}

jQuery.fn.jUpload = function(_test)
{
   this.each(function()
   {
      jQuery.jUpload.setVars(_test);   
   
      var butUpload = jQuery("<button></button>").append('upload');
      butUpload.bind('click', jQuery.jUpload.startUpload);
      jQuery(mainDiv).append(butUpload);
   });
   return this;
};

<script>
$(document).ready(function() {
   $('#divOne').jUpload('test one');
   $('#divTwo').jUpload('test two');
});
</script>

<div id="divOne"></div>
<div id="divTwo"></div>


.....................
what i want to know, is how the variable test can be unique for each plugins .. (like variables in class on php) ... in this case, the divTwo overwrite the variable test. so when i click on button1 an two .. it always display 'test two'.... thanks