Added AJAX call to take survey