dynamic templates with require.js