make regex2dfa.js main
fix build process