1st attempt: use RequireJS for templating.