EmojiPicker stores state in global module-level variables

Yes it could probably use some refactoring, will look at it.