Added ajax function to search for cards