Currently, requests are sent through the XMLHttpRequest object. Simplify and make the code more standard by using [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API).