added JS callback asynchronous functions to handle button search loading state when querying the words/characters behind the backend