Implementing AJAX feature to display contact cards