Fixing umd definition for browser and node.