Tweak test-ui.js for changes in the `modularize` build option. [ci skip]