ReferenceError: cleanSearch is not defined
<p>I am using the reveal jQuery plugin to create a modal on my web page:</p>

<p>I have added the scripts at the bottom of the page as follows:</p>

<pre><code>&lt;script type="text/javascript" src="../Scripts/jquery-1.8.1.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="../Scripts/plugins.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="../Scripts/script.js"&gt;&lt;/script&gt; 
</code></pre>

<p>I have the reveal plugin in plugins.js</p>

<p>and have created the following script to add the modal popups:</p>

<pre><code>var ORC = ORC || {};

// Reveal Modal Popup
function modalPopup(linkID, modalID) {
    $(linkID).click(function (e) {
        e.preventDefault();
        $(modalID).reveal({
            animation: 'none',
            animationspeed: 200,
            closeonbackgroundclick: false,
            dismissmodalclass: 'close'
        });
        return false;
    });
}

ORC.init = function () {
    //Ts&amp;Cs
    modalPopup('#selectTerms', '#contentTerms');
    //Privacy
    modalPopup('#selectPrivacy', '#contentPrivacy');
};

$(ORC.init);
</code></pre>

<p>But I get the following error:</p>

<pre><code>ReferenceError: cleanSearch is not defined
</code></pre>

<p>When I click on the close link on the modal popup.</p>

<p>Has anyone come across this issue before?</p>

<p><strong><a href="http://www.jsfiddle.net/zidski/pSBfw" rel="nofollow">JSFiddle</a></strong></p>
