Update to current ES6 module syntax

This does not change the compiled output in dist, other than whitespace.