Webpack Var Injection Require Is Not Defined