Javascript using different configurations for different outputs
<p>Hi being a complete and utter idiot at the moment, where I have staring at this stuff for hours and now have no clue what I am doing.</p>

<p>Basically in one which I will name here as product.js I have Global Variables fixed</p>

<pre><code>var AREA_MAX_MAXX = 1000;
var AREA_MAX_MINX = 60;
</code></pre>

<p>these are being then being used within another js which I will call library.js with the following:</p>

<pre><code>this.area_max_maxx = AREA_MAX_MAXX;
this.area_max_miny = AREA_MAX_MINX;

this.calcPos = function() {
  var areaMaxWidth = this.area_max_maxx - this.area_max_minx;
</code></pre>

<p>What I want to do is remove the Global Variables and instead have it set up with arrays, so that whatever the array is the values will be set for<code>area_max_maxx</code></p>

<p>Can anyone help me out there??? Am I making sense?</p>
