Do not attempt to access global through factory function `this`

The value of `this` inside an AMD factory is undefined