Js sdk not working

given the async nature of JS you run into a problem

you’re trying to .getStatus before the callbacks for Twitch.init occur

that’s why it’s undefined (probably)