Add support for modules

Support ES6 modules.