replace es6 modules with umd; distribute build in root of project