Returned item is {} and there are AJAX issues