Can also specify template ID dynamically during construction.
Moved app code to external CoffeeScript file.