I would like to add few more information: The javascript works in the main question text, but in the Answer suffix (en) and also not in the asnwer options of a List (radio).
I tried already to add space after { and before }, but that was not the solution of my problem!