fixing ajax urls