Some [background info](http://stackoverflow.com/questions/336859/javascript-var-functionname-function-vs-function-functionname). In this case `onCancelClick` is a variable, which happens to be of type `function`. I don't want to declare variables before I use 'em, which is possible through a named function. That's why I'm `var`'ing it. If  it would be some helper method that needed to be available throughout the complete scope things would be different. It's a matter of personal style though.