updated UMD wrapper for compatability with modular commonjs components

Fixed the UMD wrapper for the Component package manager.