update JS to fix broken search form on Chrome