getting js set up to handle search field trigger.