Switch to AMD loading with Require.js