[jQuery] IE won't show changes made on $(document).ready?

[jQuery] IE won't show changes made on $(document).ready?


Hello!
I am doing the following in order to remove those new YouTube-
Headlines on a blog:
$(document).ready(function(){
    $('param').each(function(){
    var oldname = $(this).attr('value');
    var check = oldname.search(/youtube.+/);
    if (check != -1){
    var showinfo = oldname.search(/showinfo.+/);
        if (showinfo != -1){
            var newname = oldname+'&showinfo=0';
            $(this).attr('value',newname);
        }
    }
    });
    $('embed').each(function(){
    var oldname = $(this).attr('src');
    var check = oldname.search(/youtube.+/);
    if (check != -1){
    var showinfo = oldname.search(/showinfo.+/);
        if (showinfo != -1){
            var newname = oldname+'&showinfo=0';
            $(this).attr('src',newname);
    }
    }
    });
});
This works perfectly on all browsers, except for IE (who knew?). IE
will alter the code accordingly (it will display what I want if I copy
and paste this "new" code into a blank document and view it in IE) but
it will not display the changes made on $(document).ready when I am
just loading the page. Do I have to call this before $(document).ready
or does anybody understand what I am doing wrong?
Thanks!