I think you *should* be able to have relative URLs in the widgets now.
```
<script type="text/javascript" src="javascript/accountpreferences."></script>
```