Your comments

Update: The javascript does run! It was my error for not putting 'window.onload' first. Firebug still does say "Access to restricted URI denied" though