Update example to ES6.