title: When making an ajax call I receive "TypeError: e is undefined"
body: <p>I am trying to display the contents of a website by using file_get_contents in a PHP script and ajax on the front-end. I can display the whole page just fine but if I try to only display a certain amount of images on the page, than I receive the "TypeError: e is undefined" error. Here is my PHP:</p>
  
  <pre><code>&lt;?php
      $url= 'https://twitter.com/twitter';
      if($url!="")
          echo file_get_contents($url);
  ?&gt;
  </code></pre>
  
  <p>Here is my jQuery:</p>
  
  <pre><code>    $.ajax({
      url : "twitter.php",
      dataType: "html",
      success : function (data) {
          console.log("loaded");
          //$(data).appendTo('#images');
          $.each(data.items, function(i,item) {
              $("&lt;img /&gt;").attr("src", item.media.m).appendTo('#images');
              if (i == 5) return false;
          });
      }
  });
  </code></pre>