Make react global
Add react
check commented document handlers
correctly set global react instance