Didn’t you write this in the first place?
This needs to be the UserID for Gregggg instead
header setting is covered by
So
var xhr = new XMLHttpRequest()
xhr.setRequestHeader('Accept', 'application/vnd.twitchtv.v5+json');
For example (untested) should work