Merge pull request #469 from herby/no-direct-writescripttag-calls

Use addJSToLoad everywhere.
Give time window to execute the script.

Packages can load in bad order when loaded using jQuery.
The callback is upon load, not upon execution.
This gives a 5ms time window for the actual execution for each .js file.