amd template and require.js