Add global js interface for plugins and remove mixpanel