Ported to AMD, Require.js