jQuery Singleton
<p>I have something like in a file say test.js:</p>

<pre><code>(function($){    
$.test= function(){ 
    alert('test');
    }
 })(jQuery);
 jQuery.test();
</code></pre>

<p>Now if test.js is loaded twice in my page i.e. src=test.js in two different locations, it gives alert twice. I want it to be like a singleton. Any ideas on how to achieve this?</p>
