fix webpack config, move polyfills