Thread:Talk:MediaWiki 1.18/where is defined head

with new mediawiki on skin.php files (modern.php for example) there aren't head section, i need to add my javascript to it how i should do this?