Evaluate javascript in template or custom widget

Does habpanel support that? I tried to add some custom svg with d3js but it seems the javacript code is not evaluated.

See comment in another thread.

https://community.openhab.org/t/custom-widget-keypad/18154/5?u=murpher

Can’t be done for security reasons