Made entities.jq and archives.jq generic.