I have no idea why, but the way global was used before doesn't work properly (or at least not the way I thought it would).
If you remove this line, then the global object isn't updated when the module modifes the global object, and we can't share global state between modules.
I don't know why the previous way doesn't work, I couldn't make it work after various attempts.