This definitely cannot work (it creates a local function, so we can't refer to the outside one, which we need to do). Did you run the browser tests?