Handling templates with Require.js