docs: es6ify the examples