added segment.io JS analytics