changed the way that react exports itself for the browser and with node