How do you render a piece of java script code with every page?

How do you render a piece of javascript code on every page? For example  after I extended the view with the theme that I am using do I place the <script> tags in page/elements/header.php because the header is on every page? 

Feedback and Planning

Feedback and Planning

Discussions about the past, present, and future of Elgg and this community site.