added new javascript to manage search component