OO Javascript. Properties Issue
<p>I come from OOP languages (Java, C# and PHP). I'm just doing some OOP in Javascript and am seriously confused on how to define a property. The code below is based on a Mozilla code example, which is the same as what I'm working with. I've also included the way I thought properties should be declared, but don't seem to work.</p>

<pre><code>var myExtension = {

    // This is how I thought it'd be done
this.instructionServers = new Array(
    "http://server.com/json.php",
),


init: function() {  
    // The event can be DOMContentLoaded, pageshow, pagehide, load or unload.  
    if(gBrowser) {
        gBrowser.addEventListener("DOMContentLoaded", this.onPageLoad,false);  
    }
},  

onPageLoad: function(aEvent) {  
    var doc = aEvent.originalTarget; // doc is document that triggered the event  
    var win = doc.defaultView; // win is the window for the doc  

    // Skip frames and iFrames
    if (win.frameElement) return;

    // Code removed
}  
</code></pre>
