fix: Loader referenced to global object

When requiring in Require.js style, `this` pointed to global object instead of a loader.

It happened after following RequireJS shim:

```
window.require = window.requirejs = System.amdRequire;
```

This commit fixes whole class of such issues.

Basically I avoid using "this" as much as possible.