changed the method of writing out the 404s.json file