Refactor the code to ES6 imports

All requires should be changed to imports.