(Before you say "The UI, obvs", I'm wondering if it's a common practice to write UI code in games in javascript. I know that Gnome has a lot of JS that's tied into UI, I didn't expect the practice to make itself into game dev).
And if this code is actually from SimCity, does SimCity have some type of v8 or other js engine packaged with it?