Fixed exports undefined bug for exports and define

Pivot will work in the browser now.