fix tracking in segmentio.js (issue #2)