RequireJS and AngularJS template structure.