Am I correct in thinking that the error "undefined is not a function" is referring to a command that's still on the 'todo' list?
No, it is a bad error reporting. Can you paste here the code that generates it?