Create a constructor function with modular pattern
<p>I have heard lot about <code>Javascript: Module Pattern</code>. But most of those articles explain how to make static classes i.e when we don't have to deal with instances and we want to share the object created modular pattern. Can some one explain me this pattern with constructor functions say this example:</p>

<pre><code>function Shape(x, y) {
    this.x= x;
    this.y= y;
}
Shape.prototype.toString= function() {
    return 'Shape at '+this.x+', '+this.y;
};
function Circle(x, y, r) {
    Shape.call(this, x, y); // invoke the base class's constructor function to take co-ords
    this.r= r;
}
Circle.prototype= new Shape();
Circle.prototype.toString= function() {
    return 'Circular '+Shape.prototype.toString.call(this)+' with radius '+this.r;
}
</code></pre>

<p>How do I convert it to modular pattern? and is there any benefit to use it in modular pattern way?</p>
