update mixpanel js snippet