title: jQuery.ajax() returning code 404 on existing URL
body: <p>I am trying to build a Chrome Extension that checks the HTTP code returned by a given URL. After unsuccessful attempts, I tried this piece of code in jsfiddle and surprisingly got a 404: </p>
  
  <pre><code>$.ajax({
     url:"www.google.com",
     type: 'GET',
     statusCode: {
        200: function () {
           alert('200');
        },
        404: function () {
           alert('404');
        },
        500: function () {
           alert('500');
        }
    }
  });
  </code></pre>
  
  <p>Does anybody know what I am doing wrong?
  (Also, please note that this code doesn't work at all in my JavaScript file for some reason, but works in jsfiddle...)</p>