i must be really dumb i have runt that code but it just shows the code in the window 
( var parent = [āsites.google.comā, āwww.gstatic.comā, window.location.host];
console.log(parent);
document.getElementById(ātarget_frameā).setAttribute(āsrcā, document.getElementById(ātarget_frameā).getAttribute(āsrcā) + ā&parent=ā + parent.join(ā&parent=ā));
var options = {
width: 800,
height: 500,
channel: ājonsiinā,
allowfullscreen: false,
layout: āvideo-with-chatā,
muted: true,
parent
};
var player = new Twitch.Embed(ātestā, options);
)