Convert a lot of Globals to ES6 modules