The model is not available in the head template.
One reason for this design decision is that the head template only gets included *once* for *multiple* instances of the same component within a page. therefore the dynamic code will only be run once, which might not be what you intended.
There's no problem adding dynamic <script> and <link> tags to the <body>, many modern web apps and sites use this technique today.
Thanks,
Mike