Joomla cant make java script to work

Hi people, I got stuck with unusual stuff, I am trying to add live chat to Joomla. The problem is, plugins looks ugly and lacks features I want. Now when I get code that I must insert from other source, Joomla strips script tag. Also I am not able to add iframe which is really strange.

I have set to not filter and using JCE editor. Tried adding with various Joomla extensions that “should” help you use modules. But that doesn’t work also.

Any help would be appreciated. Lost my way there really.

Have you tried using an <object> tag instead of a <iframe> tag?

This is what I get

<o-bject type='text/j-avascript'>(function () { var done = false; var script = document.createElement('script'); script.async = true; script.type = 'text/j-avascript'; script.src = 'https://widget.purechat.com/VisitorWidget/WidgetScript'; document.getElementsByTagName('HEAD').item(0).appendChild(script); script.on-readystatechange = script.on-load = function (e) { if (!done && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete')) { var w = new PCWidget({ c: '175871ef-b001-4c8f-aace-e1e251970793', f: true }); done = true; } }; })();</object>

and when using script I get s-cript,

RSFirewall was causing the issue and stripping script tag and causing javascript errors. Added my IP to whitelist and now its all good