Fix #221 Update UMD according to umdjs/returnExports

umdjs/returnExports: https://github.com/umdjs/umd/blob/master/returnExports.js

Closes gh-221