reset the editRanges when updating scripts