This is a working AJAX Contact Form that uses the built in fetch library to post the form as JSON to your FabForm endpoint.
Make sure to replace the xxxxxxx in your endpoint with your actual form id