Operations to compare sequence regions, overlaps, join regions, etc. in javascript