Fix 'Toggle Search' bug in client JS