proper AJAX refresh for the datatable, using JSON