changes ajax call to correct path