Twitch api asynchronous call

I am working on the twitch project,and I am kind of stuck getting the status and updating it on my page.
I am initially not setting the status but updating it later through another json call and this does not work anytime.
I am using the eight users provided and i am not able to update the status.Its too random when i try to update the status and i dont know why.
Here is my pen

Any help would be appreciated.

I managed to do what i intended to do;nested a json request within another.
What i clearly dont understand fully is how asynchronous programming works.I am still sitting here scratching my head even though I made the code changes myself without copying anyone.I wanted to write neat code with functions having parameters and separating the code out.But now my code looks pretty nasty.