Server-side-generated JavaScript would be an appropriate description. It even shows up on Google autocomplete, and there are many results. I am not a fan of this pattern. I find that it is better to keep JavaScript on the view-side completely and just inject the values you need via an init
method of some sort.
1
solved What is it called when you use the