AJAX post to API endpoint
Fix conflicts