Basic js inside ux tag

HI!
how can i write js inside a UX markup
<Text Value="{name.split("-")}) />
or some basic js function in UX tag.
Thanks