checks for mixpanel cookie in a loop rather than trusting analytics.ready event.

Hopefully this fixes #86