Get channel name after login on website

Ok, if I do

curl -H “Authorization: OAuth [OAUTH]” https://id.twitch.tv/oauth2/validate

with the OAUTH that I get with the implicit, it gives me back:

{“client_id”:“dagadgadfkjgnajkng”,“login”:“username”,“scopes”:[“viewing_activity_read”],“user_id”:“83749274932”}

This is what I want.
But I did this with curl, so how can I make this same request via javascript?
Angular uses javascript