Hi Mike,
there are a couple answers to this question, but I've had this conversation privately with someone else recently. So perhaps before I answer I need to tease some details out of you.
Firstly - why do you want to put your JavaScript in the <head> section?
Secondly - why not just put the JavaScript in a separate js file, and link that js file from the global scripts tab?
Cheers
Bruce