Move to use `fetch` instead of `xhr`