changes to segmentio js