returning code of function instead of result
<p>I saved a function created in jQuery in clean.js file..</p>

<pre><code>jQuery.fn.singleDotHyphen = function(){
return this.each(function(){
    var $this = $(this);
    $this.val(function(){
        return $this.val()
            .replace(/\.{2,}/g, '.')
            .replace(/-{2,}/g, '-');    
    });
});
};
</code></pre>

<p>My action file is..</p>

<pre><code>&lt;script type="text/javascript"&gt;  

$(document).ready(function() {
$.noConflict();
   $('#title').limitkeypress ({ rexp:/^[A-Za-z.\-\s`]*$/ }); 
       $('#title').blur(function() {
           $(this).singleDotHyphen();  
        });
 }); 
 &lt;/script&gt;
</code></pre>

<p>Issue is onblur its returning me code of the function where as I want to return the  string that reject continuous hyphen and dots...</p>
