A small bit of logic for controlling a template by accessing element's node values and click events.