Search javascript is needed for logged out users too