support umd
Merge pull request #411 from segmentio/umd

support umd