Webpack Imported Module Is Not A Function