Use addJSToLoad everywhere.

There were direct calls to writeScriptTag for jQuery.