Creating leads via JavaScript / Zoho Bookings work-around

Creating leads via JavaScript / Zoho Bookings work-around

We use Zoho Bookings extensively, but it turns out it doesn't integrate with Marketing Automation (!!!!)

We need a way to get leads generated via bookings into MA, complete with tracking in place, client-side. We have a custom thank you page for bookings on our site, and I noticed bookings sends the booking / lead data in the querystring. We're thinking about writing some client-side JS to trigger the creation of a lead in MA, thus the question:

Is it possible to create a lead in MA via JavaScript, resulting in tracking being set up correctly (which wouldn't happen with a server-side API call)?