change AJAX data structure to allow for sending multiple objects