-Moved unnecessary template compilation and element selections out of
functions which are called on an interval or repeatedly.
-Bind template data to a variable to avoid 'with' usage.
-Build up markup in a string instead of adding within a loop to avoid
repaints.
-Bind event listeners to table containers instead of each element.