Yes, it's very dangerous. It could run *arbitary* code on compute of everyone who'd view the page. And there are many extensions for most of webs like YT, so I recommend to use them.