JScript: import js files
<p>I have written a JScript file for logging purposes. and I need to import that logging js file for every other JScript file. (without copying logging functionality every file).</p>

<p>Basically what I need is import JScript to another JScript.</p>

<p>Log.js </p>

<pre><code>var Log = function(filename) {
    this.fso = new ActiveXObject('Scripting.FileSystemObject');
    this.file = this.fso.OpenTextFile(filename,2,true, 0);
};

Log.prototype = {

    info: function (msg) {
        this.log('INFO ' + msg);
    },

    error: function (msg) {
        this.log('ERRO ' + msg);
    }

};
</code></pre>