reduce duplicated code
Merge branch 'feature/jsx-fast-compiler' of github.com:jsx/JSX into feature/jsx-fast-compiler
fix test stuff
fix test failure by automatic shutdown