Changing the location to resolve the JSON pages so it works in subpaths of a domain.