Also write a JSON file; page map is now an OrderedDict