title: Jquery : undefined is not a function
body: <p>I have a code below and when i try to run get the error when i call the function . I wonder hey this his happening ? help plz ... </p>
  
  <pre><code>jQuery(document).ready(function($) {
          //load config file 
          $.getScript(baseURl+"/wsj/wconf.js", function(data, textStatus, jqxhr) {
              console.log(data); // it is ok 
  
                  jq();  // Uncaught TypeError: undefined is not a function 
                  //_cusApp.ini();  //Uncaught TypeError: Cannot call method 'ini' of undefined 
  
                  var _cusApp = {
                          ini: function (inc) {
                              console.log('ini'); 
                          },
                  };
  
                  var jq = function ( ){
                      $(document).height(); // jquery not availble here   
                  }
          }); 
  
      });
  </code></pre>