make the ajax requests use relative URLs instead of /json/... so we can work even when in a subdirectory on the server