search for user js handles non-logged-in users gracefully