The example was missing a `}` and therefore the other examples wouldn't work until the first was clicked since their definition was part of the first's execution.