Is it possible to insert external variable inside javascript function variable?
<p>I have two javascript methods ( <code>imports</code>, and <code>namespace</code>)
<code>imports</code> take a string argument( eg. <code>imports("com.x.y.MyClass")</code>) and based on <code>string</code> it create a relative path and append it to head tag as script ( <code>type = text/javascript</code>). using <code>imports</code> I can attach any javascript file of my project main page.</p>

<p><code>namespace</code> can take 2 to 3 paramaters ( eg. <code>namespace("com.x.y", "MyClass", "google.maps.Marker")</code> or <code>namespace("com.x.y", "MyClass" )</code> )</p>

<p>if we call <code>var clssObj = new com.x.y.MyClass( param1, param2 )</code>  then it searches for function <code>MyClass</code>  and calls it if it exists.</p>

<pre><code>imports("com.x.y.HelperClass1");
imports("com.x.y.HelperClass2");
imports("com.x.z.OtherClass");
namespace("com.x.y","MyClass","MyBaseClass").Class = function(){

var ...
..
.;
function privateFunc(){ 
   this.baseclassFunction(); \\ since Myclass is a prototype of MyBaseClass
   var otherClass = com.x.z.OtherClass();
}

this.publicFun = function(){
    privateFunc();
}; 
this.MyClass = function( param1, param2 ){
    this.base();// calling base class costructor
    var helperObj1 = com.x.y.HelperClass1();
    var helperObj2 = com.x.y.HelperClass2();
};  
};
</code></pre>

<p>Is it possible to add all imported class as <code>MyClass</code> private variable? as in Java instead of using <code>com.x.y.HelperClass2</code> we use <code>HelperClass2</code> only.</p>
