Improves requirejs behaviour
Adds proper dependencies
Improves loading in AMD environments