To add a inline javascript files within the head tag
Add the line in the middle below to app/design/frontend/base/default/layout/page.xml, type has to be declared in a module or we can borrow the core/template, name could be anything, if we name it js_hello, we can call it by getChildHtml(“js_hello”);