undefined variable issue
<p>I am having trubles getting a variable declared. </p>

<p>I have </p>

<pre><code>function employees(){
   //init employees...;
}

employees.prototype.getName=function(){
            if(ajax.doingStuff){
                return;
            }               
        } 

$(document).ready(function(){
     var ajax=new ajaxCall();
     var people=new employees();   

     $('#option').on('change', function(){
                people.getName();                
       })        

})
</code></pre>

<p>and when I click <code>$('#option)</code> button, I got </p>

<pre><code>Uncaught ReferenceError: ajax is not defined
</code></pre>

<p>Can anyone help me to solve this problem? Thanks a lot!</p>
