Begin switching to a proper system of getting JavaScript objects.
(Why on earth did I use all that convoluted code to get a map and then
an array when I could've simply cast to NativeObject???)