Use proper UMD-wrapper

Updated the UMD to use the proper UMD-Wrapper.
Passing window as root, doesn't add flexibility. The same with window.define.

Passing in this as root, enables the root element to change - default browser behaviour is window.

See more for inspiration:
https://github.com/umdjs/umd/blob/master/amdWeb.js