ahh yes, it doesnt.
Well not as you would expect atleast. It will not run on load.
A workaround is to put your script in onload of an image. I did something like that here.
Becareful though... running js scripts onload can break the designer. (ex: don't do an alert)
"<img style='display:none' src='/favicon.ico' onload=\" your script \"></img>"