updated segment.io js script