API call working and data exists, but need to refactor JSON object output for AJAX/D3 call