Ajax: use anchor tag for parsing urls

This PR changes the Ajax URL parsing from using a regex to using an anchor tag. This should be simpler and more reliable.

Fixes https://github.com/jquery/jquery/issues/1875
/cc @dmethvin
This should still be using `s.url` like the code it replaces.