Why not just function onCancelClick instead of assigning an unnamed function to a variable?  I'm not really complaining, but I see people do this a lot and I don't know why.