adding code for ajax call for getting action words