Using ECMAScript's module system as a reference