An example of an insidious little detail with closures that can cause trouble when attempting to use Jasmine's spyOn function