Javascript client API for retrieving data from Mixpanel