Adapt search js to the 'new' search form