Internally we create what we call context's to separate logic between client and server. This makes it so the client can't affect the server's code, and the server can't affect the client's code. They're unaware of each other. If you change a global on the client it won't be changed on the server.
This month I added another context for the menu. This has made things a lot more manageable on the backend and fixed a bunch of compiling/hotloading bugs.