Where to place jQuery.expr code? 
<p>I'm looking for a solution to have a case-insensitive version of the <code>:contains</code> selector in jQuery. I found these two posts here on Stack Overflow:</p>

<p><a href="http://stackoverflow.com/questions/187537/is-there-a-case-insensitive-jquery-contains-selector">Is there a case insensitive jQuery :contains selector?</a><br>
<a href="http://stackoverflow.com/questions/2196641/how-do-i-make-jquery-contains-case-insensitive">How do I make jQuery Contains case insensitive?</a></p>

<p>So basically the solution is this:</p>

<pre><code>jQuery.expr[':'].Contains = function(a,i,m){
    return jQuery(a).text().toUpperCase().indexOf(m[3].toUpperCase())&gt;=0;
};
</code></pre>

<p>My only question is how do I use this? Where to I specify this piece of code?
I'm loading jQuery in my header and afterwards I load my script.js file where I have my DOM ready function declared. I put this piece of code outside the DOM ready function but it doesn't change anything in the behaviour of the <code>:contains</code> selector.</p>
