In some cases the `--post-js` code executes on load, right after the JS library code is loaded. In other cases (specifically in the `-sMODULARIZE` case today) the code doesn't run until have instantiation and after the `main` function has run. We should probably pick one behavior and stick with it.