You'll need to add `var cancelBehaviour = require('./shared/cancel-behaviour');` around line 10 as well, [like here](https://github.com/gocardless/gocardless-node/blob/master/lib/resources/subscription.js#L6).