Refactoring
Pack ref,first,last and source in an object ot call mixpanel.register only once. Remove some not used properties.