AMD loading support. Tested with RequireJS