changed flat define -> UMD https://github.com/umdjs/umd issue #1