fix(callback): callback was called twice when lib was already loaded

When $script was used with lists with shared scripts, the inside ```callback()``` was called twice for previously loaded libraries, and this caused the ```done()``` to be called before the scripts were loaded.
Side bonus: 21 bytes less in minified library