Array_merge to the rescue! Add jQuery to the beginning of $doc->_scripts so that it is loaded first in the head