I have the following script on a page that I want to replace some system language.

```
<script> 
function xchangemessage2()
{ 
    xval = jQuery('[ID*="_UserMessageText"]').html(); 
    xvalpos = xval.indexOf("We could not find your information in our system. Please search again or contact us for assistance."); 
    xvallen = xval.length; 
    if (xvalpos > 0) 
    { 
         jQuery('[ID*="_UserMessageText"]').html(xval.substring(0, xvalpos+xvallen) + '  If you provided a valid user name, an email will be sent to the email address on file.') 
    } 
 } 
 Sys.Application.add_load(xchangemessage2); 
 </script>

```

I keep getting 

> 
> Javascript TypeError: Cannot read property 'indexOf' of undefined.
> 
> 
>