https://medium.com/@danielmihai0220/making-http-requests-in-javascript-using-xmlhttprequest-and-fetch-a818394b700f