Fix JS error in snowplow.js