I have a problem running javascripts from trac. 
I know there are security issues around this, but my trac installation is only used as an intranet. 

I have got the following code to work (requires setting rendering\_unsafe\_content = true under [wiki] in trac.ini):

```
{{{
#!html

<script type="text/javascript" >
document.write("This is a test")

</script>

}}}

```

However, replacing this with the javascript in a seperate file will fail:

```
{{{
#!html

<script type="text/javascript" src="/tracproject/htdocs/test.js" >

</script>

}}}

```

where tracproject is the root folder of trac and test.js contains document.write("This is a test").

Any clues?