Added save horse search functionality

Added the necessary javascript to manage the save horse search
functionality.