An easier way to convert ES6 modules to AMD and CommonJS