Putting the layersconfig in the loader as it previously was.

The `loader.js`is a javascript file. The `'<scr' + 'ipt>'` is only need to load external sources.

Note: this is a quick fix, as the loader is never cached.