Refactored save word javascript
Refactored translate api calls to only accept search query