I think this was missed when resolving #3382
The reference examples in the files in src/utilities still need to be updated to ES6 syntax.
The todo here is mostly to change var to let or const in the reference examples inside the folder linked above. There are tons of resources online for learning about ES6. Here is an interactive guide that covers the biggest features.