title: Replace is not defined, but why?
body: <p><br />
  can somebody tell me what is wrong?</p>
  
  <p><strong>JS Code</strong></p>
  
  <pre><code>$.ajax({
      url:"http://www.google.com/complete/search?qu=chicken",
      success:function(data){
  
          var test_data = ''+data+''; // convert object to a string
          $('body').append(typeof(test_data));
  
          var test_data = replace.test_data(/[0-9]/,'X');
          $('body').append('&lt;hr /&gt;'+test_data+' &lt;hr /&gt;');
  
      },
      dataType:'jsonp',
      error:function(){
          alert('error');
      }
  });
  </code></pre>
  
  <p><strong>jsfiddle</strong>
  <a href="http://www.jsfiddle.net/V9Euk/664/" rel="noreferrer">http://www.jsfiddle.net/V9Euk/664/</a></p>
  
  <p>Thanks in advance!<br />
  Peter</p>