Fix failing require with webpack