ajax call working. Time to send appropriate response from server