Linking External Javascript with drupal_set_html_head
I think all you need to add is $vars['head']=drupal_get_html_head(); after your code above so that the $head variable passed to your page.tpl.php is updated.  If you are doing anything "interesting" with your header, you may need to change that to a .= instead so that it is added to $head instead of just replacing it.