Improve calling the the loadjs function multiple times.

When loadjs is called multiple times to load the same file, it shouldn't
try loading that file again, but wait for the currently loading file by
a previous loadjs call, before continuing.
1.0.13