Twitch problem when clicking on buttons

Continuing the discussion from Doing twitch.tv json api (intermediate project):

don’t know where m getting wrong…on clicking the buttons its not working properly

please have a look at my javascript code @ https://codepen.io/abhi5995/pen/BYjMgB

i have solved the problem now…initially the problem was that when i used to click on the online or offline button it wasn’t responding properly…