Ajax POST and GET functions with simple callback methods