change structure and init react
Merge pull request #18 from fanatid/reactinit

change structure and init react