Updating url during ajax call