make it work with webpack