docs(popup): fix a typo in the example code

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.