Yes, this has changed recently.
From 2011 to 2017, an app could either use Apple's JavaScript interpreter, or the app could use its own interpreter for any language it wants, but the code had to be built-in to the app, not downloaded.
Then in June of 2017, section 3.3.2 of the Apple Developer...