refactored code, chromosome data delivered through json, responding to chr selector field