create AJAX controller to return trial layouts as JSON