Replaced relative URLs in ajax() examples

Using relative URLs in the `ajax()` call examples leads to confusion because in many cases they don't work. All examples were changed to use the `URL()` function, which always generates the proper URL.