Add UMD wrapper
Store references for better minifying