NicolasPetton/amber — pull request #120 by lolgzs (2012-01-15 20:30:26+00:00)
Title: Change the way JS are loaded so Amber can be loaded through AJAX

When loaded using AJAX, scripts order not guaranteed (parallel loading). So some JS where loaded before their dependencies and then fail.

So now init.js use a queue to declare JS to load (addJSToLoad).

When JQuery already loaded, use JQuery getScript to load JS and go on next JS once the previous is loaded.

If JQuery not available, use the previous way of loading (writing