title: variable suddenly returns 'undefined'
body: <p>my variable directLinks gives me 'undefined' in Chrome's javascript console when i used it inside <code>console.log</code> but it was able to work properly in two other occasions as you can see below.</p>
  
  <pre><code>if (jQuery(this).isOnScreen() === true &amp;&amp; directLinks.text() === "www.example.com")
  {
      jQuery.ajax(
      {
          url: directLinks.attr("href").replace("www.", ""),
          aysnc: false,
      })
      .done(function(data)
      {
          console.log(directLinks.attr("href"));
          var test = jQuery(data).find("#left").children().children("div").eq(2).children("p").eq(1).children("a").attr("href");
          directLinks.attr("href", test);
      });
  }
  </code></pre>