added the text plugin to require.js, extracted the template files from index.html and put them in their own files directory