fix phantomjs

see https://github.com/segmentio/analytics.js/pull/369