Cross-browser improvements. Fix mixpanel dev bug.