Upgrading mixpanel js script code to v2.2