changing AJAX call from POST to GET