System exit

Tested locally
Hum, that's not good. `__ScalaJSEnv` might not come from the global scope. It could be a local var of whatever function our code is wrapped in (e.g., to have a CommonJS or Require.js-style module).