made js copy of json for by date