fix this not being window using webpack