Add to currencyConverter.js the functionality to textField.onTextChanged to encapsulate behavior into the JS file.