- Renamed the `setUpExternalModule()` helper function to `onModuleReady()`.
- `onModuleReady()` now also accepts an array of module names.
Export the `main()` function as a module and not a property.