merged refresh_words and spawn_new_words into a single function. ajax call is working in show.html, but needs to be refactored