This code replaced jQuery's ajax with vanila js
// alpha JS request // no jQuery Copied from https://wordpress.stackexchange.com/a/301736/86978 https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send#Example_POST https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest