correcting ajax urls