fixes submit ajax call for updated doGet function