Use equivalent ES6 module code

This makes it equivalent to the previous slide's CommonJS code (and the one before that's AMD code).