adding changes to mixpanel.js

Adding changes to mix panel.js