Hello. I created a bookmarklet that includes an external js file and displays output on a page using document.write. It works in FireFox but nothing happens when I use it in IE and I am not sure why. Here is the code for the bookmarklet:

javascript:(function(){with(j=(d=document).createElement(s='script')){type='text/'+(language='java'+s);src='http://www.mysite.com/test.js';}d.body.appendChild(j);})()

and the code in the js page I am calling

document.write('Hello');
void(document.close())

any help would be greatly appreciated. Thx