Add UMD wrapper for RequireJS and Node

Adding a UMD wrapper based on returnExportsGlobal pattern
from umdjs/umd@bd963c7