initial webpackified version!