Adding jQuery to a view (exposed filter: search terms)
Use hook views pre render instead.

function themename_views_pre_render(&amp;$view) {

   if ($view-&gt;name == 'view_name' &amp;&amp; $view-&gt;current_display == 'block_1') {
    drupal_add_js(drupal_get_path('theme', 'themename') . '/js/jquery.highlight-5.js');
   } 
}



replace themename with your theme name
replace view_name with your view name
replace block_1 with your machine name