It kinda make sense, I considered that but this is more to be used 'outside' the module

I wanted to have something like :
``` JS
loader({
    type: loader.JS, // and this would require this to be loader.types.JS and too me it is a bit verbose
    resources: '...'
})
```