Issue #5: Fix for docpad 6.65.0

Fixed issue #5 - note that I don't really know coffeescript, so a code review will be a good thing. Tested with docpad 6.69.0.