Update CoffeeScript docs to use the current ES6 syntax

Updates the CoffeeScript example to use the latest ES6 syntax.