Code refactoring for module load_sources.js

@tadatuta @tavriaforever @dab 
```js
function uniqCompact(collection) {
    return _.uniq(_.compact(collection));
}