Removes 2nd AJAX request since it's not necessary
Refactors translation#generate route. remove print statement
refactors get_translated_word method