Fix CoffeeScript example code

Fixes #796
Merge pull request #798 from renan/patch-1

Fix CoffeeScript example code