Fix CoffeeScript example code

Fixes #796