AJAX is working properly. Individual details no longer show up multiple times