[js] Upgrade to react 0.8