I tried it in Chrome and 3 issues:
1. my browser had cached the old script- refresh browser cache to load new script. Note that default wordpress functionality will append a version number to enqueued scripts so versioning happens automatically and the browser won’t cache them. Your site isn’t doing this so I think that’s probably Cloudflare again.
2. The JavaScript has been modified, probably by Cloudflare, to remove whitespace and maybe minified in some way. So the script isn’t as I wrote it anymore and that is possibly the actual issue.
3. You still have “<script type=”text/rocketscript”>” going on – I’m not familiar with this syntax and it seems to be cloudflare specific.
The issue will be your cloudflare settings. I don’t support other plugins unfortunately and since one has modified the cookielawinfo script I daresay the problem lies there. If I were you I’d keep looking at the cloudflare settings and if you or somebody at your company is technically minded, you might want to look at the way it handles JavaScripts. Maybe Cloudflare can help?
All the best