This has to be modified since it is a js template.
The quick and ugly solution would be to use Twig to insert those values like:
```
[% var priorities = {1: '{{ 'Critical'|_ }}', 2: '{{ 'Urgent'|_ }}',... %]
```

OR we use the JavaScript translation engine and define those strings (again) in the JS language files.

Currently this breaks the script on the JS side...