Try PureScript! It's type-checked and purely functional (no crashes or runtime errors) and compiles to JavaScript. You can use it reasily with webpack too. I'm using it in production and it's amazing. Check out http://www.purescript.org and build React UIs using http://alexmingoia.github.io/purescript-pux