Twitch number online streamers in Chrome Plugin

var stream = [“ivelios_christopher”, “esl_sc2”];
var cb = ‘?client_id=API-key&callback=?’;
var url = ‘https://api.twitch.tv/kraken/’;

	$.getJSON(url + 'streams/?channel=' + stream + cb).success(function(data) {
  var streaming = (data.stream === null) ? false : true;
  if (streaming) {
    chrome.browserAction.setBadgeText({text: 'On'});
  } else {
    
  }

});

Thanks for tips, I have done somethink like this, but from some reason not working. Any tips for this?

Best,
Ivelios