move umd code into js file for maintenance and minification