Updated code style in ES modules to match other modules.