Separate templates in their own files

Using https://github.com/requirejs/text