getting response from ajax text input