jQuery $.Get not working correctly
<p>I'm having a problem with $.get that I've never had before, and can't seem to be able to fix it. When calling the following function:</p>

<pre><code>function getDefinition (word) {
var toget = "http://www.stands4.com/services/v1/defs.aspx?tokenid=TOKEN&amp;word=" + word;
jQuery.support.cors = true;
$.get(toget, function (data) {
    if(data.indexOf("&lt;definition&gt;") !== -1)
    {
        var definition = data.split("&lt;definition&gt;")[1].split("&lt;/definition&gt;")[0];
        return definition;
    }
    else
    {
        return false;
    }
});
</code></pre>

<p>}</p>

<p>Internet Explorer (I've not tested it on other browsers) throws </p>

<blockquote>
  <p>"SCRIPT438: Object doesn't support property or method 'indexOf' 
  randomfunctions.js, line 5 character 3" (line 5 character 3 would be
  the "i" in "if")</p>
</blockquote>

<p>Earlier I was getting a CORS error, so I added the </p>

<pre><code>jQuery.support.cors = true; 
</code></pre>

<p>line. I've attempted to alert(data), but the same thing happens. I'm using jQuery 1.6.1.</p>

<p>any help would be greatly appreciated,
Matthew</p>
