You can also take advantage of the "header_stuff" property that is included with the default master template. This will ensure your JavaScript is included in the <head></head> section.
Assuming you haven't removed it from your master template, just do this in your adp file:
<property name=header_stuff>
<script language="javascript">
...
</script>
</property>
You can also use this to include style sheets, etc.
I think that should work, though I haven't tried.