Use variables in handlebars template

- pre-compile handlebars template into templates.js
- define a testTranscript for testing
- Source handlebars scripts in index.html