reverse script array so scripts will load in the right order
define script src only after attaching callbacks, so even instant cache hits will call callbacks