changes ajax calls to jquery