Getting confusing, commit before tryiing AMD requirejs
Many fixes on getting requirejs to work.

Still complaining about arcgisonline.