Here's a el-plain AJAX function. The one you want to copy paste to any vanilla javascript project.