Major changes to template.js. This now provides the basic functionality of the experiment. Known issue with color change animation.