make exports work with browser