Added Mixpanel middleware for JS support