HTML Head Content equivalent in XPages?

I am playing a bit with Horace Lin’s example on integrating Google Maps with XPages. For the JS script library geo4.js I would like to remove the hard coded api keys for the domain and the latitude/longitude.

Normally I would have placed this parameters as JS variables in the HTML Head Content section of a form.

“<script language=’javascript’>” + @NewLine +

“var apikey = ‘” + @GetProfileField(“(ProfileDB)”; “Tx_GoogleKey”) + “‘” + @NewLine +

“</script>”

But how do you do that in XPages?