Fix ajax request URLs