fix for relative ajax urls