Why does module pattern create a singleton?
<p>When I try and make different instances of this module, it does not work.</p>

<p>It seems to be a singleton.  I can only have one instance at a time.</p>

<p>What mechanism limits the constructor function publik() to only have on instance?</p>

<p><a href="http://jsfiddle.net/AVxZR/" rel="nofollow">http://jsfiddle.net/AVxZR/</a></p>

<pre><code>var Module = ( function ()
{
    var publik = function ( )
    {
    };
    publik.prototype.test;
    publik.prototype.get = function()
    {
        document.getElementById( 'a'+test ).innerHTML = test;
    };
    publik.prototype.set = function( value )
    {
         test = value;
    };
    return publik;
} ) ();

var object1 = new Module();
var object2 = new Module();

object1.set('1');
object2.set('2');


object1.get();
object2.get();
</code></pre>
