potential feedback plugin

Hi there
I have nearly finished my marketpress feedback plugin. It is functional as it is on my site, but at the moment it cant be made into a plugin as it requires a javascript to be put in the header.php
(the javascript is a small script that just reloads the page when the form is submitted so that any feedback submitted appears straight away)

Is there any other way of using javascript inside plugins without putting it in the header?

ps ive tried every combination of meta and php scripts to reload the page but nothing works apart from javascript